package cn.itheima.controller.base;

import org.springframework.web.bind.annotation.ModelAttribute;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

public class BaseComtroller {
    public HttpServletRequest request;
    public HttpServletResponse response;
    public HttpSession session;


    public String company_id;
    public String company_name;
    @ModelAttribute
    public void init(HttpServletRequest request, HttpSession session, HttpServletResponse response){
        this.request=request;
        this.response=response;
        this.session=session;

        this.company_id="1"; //后期改成当前登录用户的
        this.company_name="大脸猫皮具外贸有限公司"; //后期改成当前登录用户的
    }
}
